import React from 'react'
import { NavLink } from 'react-router-dom'

export default function footerBar(props) {
    return (
        <div className='footerBar'>
            <h2>用户管理</h2>
            <ul>
                {
                    props.routes.filter(item => item.meta.isShow).map((item, index) => {
                        return (
                            <li key={index}>
                                <NavLink to={item.path}>
                                    <span className={`iconfont ${item.meta.icon} icon`}></span>
                                    <span>{item.meta.title}</span>
                                </NavLink>
                            </li>
                        )
                    })
                }
            </ul>
        </div>
    )
}
